Achieving high and consistent rendering performance of Java AWT/Swing on multiple platforms
نویسندگان
چکیده
Wang et al. (Softw. Pract. Exper. 2007; 37(7):727–745) observed a phenomenon of performance inconsistency in the graphics of Java Abstract Window Toolkit (AWT)/Swing among different Java runtime environments (JREs) on Windows XP. This phenomenon makes it difficult to predict the performance of Java game applications. Therefore, they proposed a portable AWT/Swing architecture, called CYC Window Toolkit (CWT), to provide programmers with high and consistent rendering performance for Java game development among different JREs. They implemented a DirectX version to demonstrate the feasibility of the architecture. This paper extends the above research to other environments in two aspects. First, we evaluate the rendering performance of the original Java AWT with different combinations of JREs, image application programming interfaces, system properties and operating systems (OSs), including Windows XP, Windows Vista, Fedora and Mac OS X. The evaluation results indicate that the performance inconsistency of Java AWT also exists among the four OSs, even if the same hardware configuration is used. Second, we design an OpenGL version of CWT, named CWT-GL, to take advantage of modern 3D graphics cards, and compare the rendering performance of CWT with Java AWT/Swing. The results show that CWT-GL achieves more consistent and higher rendering performance in JREs 1.4 to 1.6 on the four OSs. The results also hint at two approaches: (a) decouple the rendering pipelines of Java AWT/Swing from the JREs for faster upgrading and supporting old JREs and (b) use other graphics libraries, such as CWT, instead of Java AWT/Swing to develop cross-platform Java games with higher and more consistent rendering performance. Copyright © 2009 John Wiley & Sons, Ltd.
منابع مشابه
A portable AWT/Swing architecture for Java game development
Recently, the performance of Java platforms has been greatly improved to satisfy the requirements for game development. However, the rendering performance of Java 1.1, which is still used by about one-third of current Web browser users, is not sufficient for high-profile games. Therefore, practically, Java game developers, especially those who use applets, have to take this into consideration i...
متن کاملCross-platform SMIL Player
This paper presents the design and implementation of a portable SMIL player. The player has been written in Java and can be run on top of AWT, Swing, and ftv GUI frameworks. This allows running it in various platforms, e.g., PCs, PDAs, and digital television STBs. New media players can easily be added to the player, thus complying with the fundamental idea of SMIL, integrating various media for...
متن کاملXML11 - an abstract windowing protocol
This paper describes XML11, an abstract windowing protocol inspired by the X11protocol develop by MIT. XML11 is an XML-based protocol that allows asynchronous UI updates of widgets to an end-device. To overcome high-latency connections, XML11 allows migration of application logic to the end-device. Implicit middleware enables transparent interaction between the end-device and the server. The mi...
متن کاملDesign Patterns in JDK Collections
Teaching Java is more challenging than teaching C++ or C, since instructors must at least survey various bundled and closely-related toolkits, beginning with the JDK API; for example, Swing, AWT, JDBC, JAXP, and the internationalization and collections frameworks, among others. Students of Java must learn when and how to leverage them; no one whose first instinct would be to implement a parser ...
متن کاملApplication Adaptation Through Transparent and Portable Object Mobility in Java
This paper describes MobJeX, an adaptive Java based application framework that uses a combination of pre-processing and runtime support to provide transparent object mobility (including AWT and Swing user interface components) between workstations, PDAs and smartphones. Emphasis is placed on the mobility subsystem (MS), a mobile object transport mechanism providing a high level of transparency ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Softw., Pract. Exper.
دوره 39 شماره
صفحات -
تاریخ انتشار 2009